//
//  NSDictionary+FYJSafeAccessor.h
//  AFNetworking
//
//  Created by jrwh_mac01 on 2021/8/25.
//

#import <Foundation/Foundation.h>

@interface NSDictionary (FYJSafeAccessor)

- (NSString *)fyj_stringForKey:(id)key;
- (NSString *)fyj_stringForKey:(id)key or:(NSString *)fall;

- (NSNumber *)fyj_numberForKey:(id)key;
- (NSNumber *)fyj_numberForKey:(id)key or:(NSNumber *)fall;

- (NSInteger)fyj_integerForKey:(id)key;
- (float)fyj_floatForKey:(id)key;
- (double)fyj_doubleForKey:(id)key;
- (long long)fyj_longlongForKey:(id)key;
- (BOOL)fyj_boolForKey:(id)key;

- (NSDictionary *)fyj_dictionaryForKey:(id)key;
- (NSDictionary *)fyj_dictionaryForKey:(id)key or:(NSDictionary *)fall;

- (NSArray *)fyj_arrayForKey:(id)key;
- (NSArray *)fyj_arrayForKey:(id)key or:(NSArray *)fall;

- (NSData *)fyj_dataForKey:(id)key;
- (NSData *)fyj_dataForKey:(id)key or:(NSData *)fall;

- (id)fyj_objectForKey:(id)key;

@end
